#基于nginx镜像
FROM nginx
#将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面
COPY dist/ /usr/share/nginx/html/
RUN chmod 777 /usr/share/nginx/html
#用本地的 nginx.conf 配置来替换nginx镜像里的默认配置
COPY nginx.conf /etc/nginx/nginx.conf
WORKDIR /usr/sbin

EXPOSE 8888
CMD ["nginx", "-g", "daemon off;"]
